package com.zb.framework.wechatnews.entity.vo;

import com.zb.framework.wechatnews.entity.BaseMessage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @Auther: 周作为
 * @Date: 2019/6/18 23:35
 * @Description: 小程序消息
 */
@ApiModel(description = "小程序通知消息")
public class MiniProgramMsg extends BaseMessage {

    @ApiModelProperty(value = "小程序appid",required = true)
    private String appid; //小程序appid，必须是与当前小程序应用关联的小程序

    @ApiModelProperty(value = "点击消息卡片后的小程序页面")
    private String page; //点击消息卡片后的小程序页面，仅限本小程序内的页面。该字段不填则消息点击后不跳转。

    @ApiModelProperty(value = "消息标题，长度限制4-12个汉字",required = true)
    private String title; //消息标题，长度限制4-12个汉字

    @ApiModelProperty(value = "消息描述，长度限制4-12个汉字")
    private String description; //消息描述，长度限制4-12个汉字

    @ApiModelProperty(value = "是否放大第一个content_item")
    private boolean emphasis_first_item; //是否放大第一个content_item

    @ApiModelProperty(value = "消息内容键值对")
    private List<ContentItemVo> content_item; //消息内容键值对，最多允许10个item

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isEmphasis_first_item() {
        return emphasis_first_item;
    }

    public void setEmphasis_first_item(boolean emphasis_first_item) {
        this.emphasis_first_item = emphasis_first_item;
    }

    public List<ContentItemVo> getContent_item() {
        return content_item;
    }

    public void setContent_item(List<ContentItemVo> content_item) {
        this.content_item = content_item;
    }
}
